<nav class="breadcrumb" id="pathContainer">
	<i class="Hui-iconfont Hui-iconfont-weizhi"></i>
	<span>您的位置：</span>
	<span>栏目配置</span>
	<span class="c-999 en">&gt;</span>
	<span>栏目信息</span>
	<span class="c-999 en">&gt;</span>
	<span class="c-primary">新增</span>
    <input class="btn size-S radius f-r mr-30 mt-5" id="back" type="button" value="返回">
</nav>
<div class="Hui-article mt-10" id="columnNew">
	<form id="columnNewForm">
		<table class="table" id="columnNewTable"></table>
	</form>
</div>
<div id="parentsZTree" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<h3 id="myModalLabel" class="h3">父级权限</h3>
		<a class="close" data-dismiss="modal" aria-hidden="true" href="javascript:void();">×</a>
	</div>
	<div class="modal-body">
		<div class="modal-treeMenu">
			<ul id="columnTree" class="ztree"></ul>
		</div>
	</div>
	<div class="modal-footer">
		<button class="btn btn-primary radius parent_btn">确定</button>
		<button class="btn radius" data-dismiss="modal" aria-hidden="true">关闭</button>
	</div>
</div>

<!-- localhbs -->
<script id="columnNewMsg" type="text/x-handlebars-template">
	\{{#if id}}
		<input type="hidden" name="id" value="\{{id}}">
	\{{/if}}
	<tr>
		<td class="text-r">父级栏目：</td>
		<td>
			<input type="hidden" name="parent" id="parentId" value="\{{parent}}">
			<a data-toggle="modal" href="#parentsZTree">
				<input  type="text" readonly="readonly" class="input-text input-col-3 bgTextColoe" id="parentName" value="\{{parentName}}">
			</a>
		</td>
	</tr>
	<tr>
		<td class="text-r">栏目名称：</td>
		<td>
			<input type="text" class="input-text input-col-3 mccms-validate-required mccms-validate-maxlength?200" name="name" value="\{{name}}">
		</td>
	</tr>
	<tr>
		<td class="text-r">栏目简称：</td>
		<td>
			<input type="text" class="input-text input-col-3 mccms-validate-required mccms-validate-maxlength?200" name="shortName" value="\{{shortName}}">
		</td>
	</tr>
	<tr>
		<td class="text-r">栏目模块名称：</td>
		<td>
			<input type="text" class="input-text input-col-3 mccms-validate-required mccms-validate-maxlength?200" name="columnKey" value="\{{columnKey}}">
		</td>
	</tr>
	<tr>
		<td class="text-r">栏目排序：</td>
		<td>
			<input type="text" class="input-text input-col-3 mccms-validate-required mccms-validate-maxlength?200" name="serial" value="\{{serial}}">
		</td>
	</tr>
	<tr>
		<td class="text-r">模板类型：</td>
		<td>
			<span class="select-box input-col-3">
				<select class="select" size="1" name="template" id="template">
					<option value="1">----</option>
				</select>
			</span>
		</td>
	</tr>
	<tr>
		<td class="text-r">在主导航显示：</td>
		<td>
			<span class="select-box input-col-3">
				<select class="select" size="1" name="isShowInNav">
				\{{#mccmsSelect isShowInNav}}
					<option value="0">否</option>
					<option value="1">是</option>
				\{{/mccmsSelect}}
				</select>
			</span>
		</td>
	</tr>
	<tr>
		<td class="text-r">链接地址：</td>
		<td>
			<input type="text" class="input-text input-col-3 mccms-validate-required mccms-validate-maxlength?200" value="\{{link}}" name="link">
		</td>
	</tr>
	<tr>
		<td class="text-r">状态：</td>
		<td>
			<span class="select-box input-col-3">
				<select class="select" size="1" name="state">
					<option value="1">已启动</option>
					<option value="0">已停用</option>
				</select>
			</span>
		</td>
	</tr>
	<tr>
		<td class="text-r">栏目介绍：</td>
		<td>
			<textarea id="uEdit" name="content" style="width:1024px;height:500px;">\{{content}}</textarea>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<input class="btn btn-primary radius text-l" id="columnSub" type="button" value="提交">
		</td>
	</tr>
</script>

<script id="options" type="text/x-handlebars-template">
\{{#each result}}
	<option value="\{{id}}">\{{name}}</option>
\{{/each}}
</script>

<script>
	new columnEdit();
</script>